package com.ydd.app.manager;

import com.ydd.app.bean.common.NewsDetailBean;
import com.ydd.app.bean.common.NewsTypeBean;

public interface NewsMng {

	public NewsDetailBean queryNewsDetail(final String newsId);
	
	public NewsDetailBean updateNews(final String newsId,final String newsDetail,final String title,final String newsTypeId,
			final String newsDescribe,final String pictureUrl);
	
	public boolean deleteNews(final String newsId);
	
	public boolean createNews(final String newsDetail,final String title,final String newsTypeId, final String userId,
			final String newsDescribe,final String pictureUrl);
	
	public NewsDetailBean[] queryNewsInBackstage(final int page, final int pageCount,
			final String newsTypeId,final String newsStatusId);
	
	public int queryNewsCountInBackstage(final String newsTypeId,final String newsStatusId);
	
	public NewsDetailBean reviewNews(final String newsId,final String statusId,final String reson,final String userId);
	
	public NewsTypeBean[] queryNewsTypes();
	
	public NewsTypeBean[] queryNewestNews(final int pageCount); 
	
	public NewsDetailBean[] queryNewsInWeb(final int page,final int pageCount,final String newsTypeId, final String keyWord);
	
	public int queryNewsCountInWeb(final String newsTypeId);
}
